package com.hxzy.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

@ApiModel(value = "创建订单的数据模型")
@Getter
@Setter
@ToString
public class CreateOrderDTO {

    /**
     * 商家ID
     */
    @ApiModelProperty(value = "商家ID",required = true)
    @NotNull(message = "商家ID不允许为空")
    private Long merchantId;

    /**
     * 地址id
     */
    @ApiModelProperty(value = "收货人地址",required = true)
    @NotNull(message = "收货人地址")
    private Long addressBookId;



    /**
     * 支付方式 1微信,2支付宝
     */
    @ApiModelProperty(value = "支付方式 1微信,2支付宝",required = true)
    @NotNull(message = "支付方式")
    private Integer payMethod;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
}
